<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
  <div id="topbar">
  <div class="info">
    <ul>
      <c:if test="${empty niagara_security_session_login}">
      <li>欢迎光临顺风车！</li>
      <li>|</li>
      <li><a href="${ctx}/reg/register.action">注册</a></li>
      <li>|</li>
      <li><a href="${ctx}/login.action">登录</a></li>
      </c:if>
      <c:if test="${not empty niagara_security_session_login }">
      <li><c:out value="${niagara_security_session_login}"/>&nbsp;&nbsp;你好，欢迎光临顺风车！</li>
      <li>|</li>
      <li><a href="${ctx}/niagara_security_loginout">注销</a></li>
      </c:if>
    </ul>
  </div>
  <div class="menu">
    <ul>
      <li><a href="${ctx}/home/myhome.action" target="_blank">我的主页</a></li>
      <li>|</li>
      <li><a href="javascript:setHome(document.body,window.location)">设为首页</a></li>
      <li>|</li>
      <li><a href="javascript:addFavorite(window.location,'顺风车交易平台')">加入收藏</a></li>
    </ul>
  </div>
</div>

<div id="top">
	<h1><a href="${ctx}"><i>顺风车交易平台</i></a></h1>
	<div>
		<div>
		<input class="key" id="key" type="text" name="key" value="请输入关键字！" onclick="makeKey('on');" onblur="makeKey('out');"/>
		<input class="keybtn" type="button" name="btn" value="搜索" onclick="keySearch();"/>
		</div>
	</div>
</div>